<?php

use yii\helpers\Html;
use yii\widgets\ActiveForm;

/* @var $this yii\web\View */
/* @var $model backend\models\Course */
/* @var $form yii\widgets\ActiveForm */
?>

<div class="course-form">

    <?php $form = ActiveForm::begin(); ?>

    <!-- 当前管理员是校级时，默认选择当前学校，且不能更改 -->
    <?= $form->field($model, 'XXID')->dropDownList($this->params["schoolList"] , ['prompt'=>'请选择']); ?>

    <?= $form->field($model, 'KCMC')->textInput(['maxlength' => true]) ?>

    <?= $form->field($model, 'KCDM')->textInput(['maxlength' => true]) ?>

    <?= $form->field($model, 'KCLB')->dropDownList( Yii::$app->params['fieldOptions']['KCLB'] ,['prompt'=>'请选择']); ?>

    <?= $form->field($model, 'KCXZ')->dropDownList( Yii::$app->params['fieldOptions']['KCXZ'] ,['prompt'=>'请选择']); ?>

    <?= $form->field($model, 'KCJJ')->textInput(['maxlength' => true]) ?>

    <?= $form->field($model, 'XF')->textInput() ?>

    <?= $form->field($model, 'ZXS')->textInput() ?>

    <?= $form->field($model, 'LLXS')->textInput() ?>

    <?= $form->field($model, 'SYXS')->textInput() ?>

    <?= $form->field($model, 'SJXS')->textInput() ?>

    <?= $form->field($model, 'KHFS')->dropDownList( Yii::$app->params['fieldOptions']['KHFS'] ,['prompt'=>'请选择']); ?>

    <!--给'JXDG’字段关联'uploadFile'字段-->
    <?= $form->field($model, 'JXDG')->fileInput(['class' => 'form-control']) ?>

    <?= $form->field($model, 'JC')->textInput(['maxlength' => true]) ?>

    <?= $form->field($model, 'CJSJ')->textInput() ?>

    <?= $form->field($model, 'GXSJ')->textInput() ?>

    <div class="form-group">
        <?= Html::submitButton('保存', ['class' => 'btn btn-success']) ?>
    </div>

    <?php ActiveForm::end(); ?>

</div>
